package cn.wolfcode.ssm.service;

import cn.wolfcode.ssm.domain.Notice;
import cn.wolfcode.ssm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.HashMap;
import java.util.List;

public interface INoticeService {
    void save(Notice notice);
    void delete(Long id);
    void update(Notice notice);
    Notice get(Long id);
    List<Notice> listAll();
    // 分页查询的方法
    PageInfo<Notice> query(QueryObject qo);

    void updateReadStatus(Long id);

    void updateReleaseStatus(Long id,Boolean releaseStatus);


    int countNoRead(Long id);
}
